<?php
include 'dbconfig.php'; 
mysql_select_db($db, $con);

$id = mysql_real_escape_string($_POST['id']);

$hash = md5($cid.mt_rand());

$query2 = "DELETE FROM course_instances WHERE id = $id LIMIT 1";

mysql_query($query2);

mysql_close($con);

?>